package com.deep.product.dao;

import com.deep.product.model.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author deep
 * @email ${email}
 * @date 2022-01-13 17:09:54
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
     * 更新spu发布状态
     *
     * @param spuId spuId
     * @param code  发布状态
     */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
